#ifndef SAVE_H
#define SAVE_H

#include <QThread>
#include <QFile>
#include <QTextStream>
#include <QQueue>

class Save:public QThread
{
    Q_OBJECT

private:
    QString compass;
    QString depth;
    QString posture;

    QTextStream out;

public:
    explicit Save(QString compass,
                  QString depth,
                  QString posture,
                  QObject *parent = nullptr):
        QThread(parent),
        compass(compass),
        depth(depth),
        posture(posture)
    {};

signals:
    void appendFileStream(QString data);
protected:
    void run() override;
};

#endif // SAVE_H
